<?php
$this->breadcrumbs = array(
    'User'=>array('user/index'),
    ' - History'
);
?>
<div class="box">
    <header>
        <div class="icons"><i class="icon-user"></i></div>
        <h5>History</h5>
    </header>
    <div class="body">
        <div class="row-fluid">
            <div class="span3">Total Orders Today: <?php echo $order['today'];?></div>
            <div class="span3">Total Orders Week: <?php echo $order['week'];?></div>
            <div class="span3">Total Orders Month: <?php echo $order['month'];?></div>
        </div>
        <?php
        $this->widget('bootstrap.widgets.TbGridView', array(
            'dataProvider' => $model->search(),
            
            'type' => 'bordered condensed striped',
            'columns' => array(
                array(
                    'name' => 'order_id',
                    'header' => 'ID',
                    'htmlOptions' => array('width' => '50')
                ),
                'street',
                'state',
                'city',
                array(
                    'name' => 'zip',
                    'htmlOptions' => array('width' => '50')
                ),
                array(
                    'name' => 'package_name',
                    'filter' => false
                ),
                array(
                    'name' => 'package_price',
                    'filter' => false
                ),
                array(
                    'name' => 'delivery',
                    'value' => '$data->getDeliveryText()',
                    'filter' => false,
                ),
                array(
                    'name'=>'create_time',
                    'type'=>'datetime'
                )
            )
        ));
        ?>
    </div>
</div>